function MyKey() {
    const login = (e) => {
        console.log(e, '===keyup===')
        if (e.key === "Enter") {
            alert('登陆了！')
        }
    }

    return <input type="text" onKeyUp={login} />
}

export default MyKey;